package com.tbit.uqbike.webmanager.dao.core;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tbit.uqbike.object.pojo.UserAuthWhiteList;
import com.tbit.uqbike.object.pojo.dto.AuthWhiteListDownloadDTO;
import com.tbit.uqbike.object.pojo.dto.UserAuthWhiteListDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yanlun
 * @since 2023-12-05
 */
@Mapper
public interface UserAuthWhiteListDao extends BaseMapper<UserAuthWhiteList> {

    int insertOrUpdateByBatch(List<UserAuthWhiteList> list);

    Page<UserAuthWhiteListDTO> pageByCondition(Page page, @Param("brandId") Integer brandId, @Param("authNo")String authNo,
                                               @Param("name")String name, @Param("startTime") Date startTime, @Param("endTime") Date endTime);

    List<AuthWhiteListDownloadDTO> listByCondition(@Param("brandId") Integer brandId, @Param("authNo")String authNo,
                                                   @Param("name")String name, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
}
